package com.xd.server.sync.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 数据同步日志(DataSyncLog)视图类
 *
 * @author xiaodi
 * @since 2023-03-28 16:51:02
 */

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "com.xd.server.sync.vo.DataSyncLogVO", description = "数据同步日志VO")
public class DataSyncLogVO implements Serializable {
    private static final long serialVersionUID = 760039725011058091L;

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "主端ip")
    private String master;

    @ApiModelProperty(value = "备端ip")
    private String salve;

    @ApiModelProperty(value = "状态：0 失败 1成功")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime syncTime;

    @ApiModelProperty(value = "日志类型 0 cmdb数据同步 1 数据库数据同步  2 主备切换")
    private Integer logType;

    @ApiModelProperty(value = "0 自动  1 手动")
    private Integer type;

    @ApiModelProperty(value = "日志")
    private String syncLog;


}
